import request from '@/utils/request'

export function getInfo(params) {
  return request({
    url: '/course/findAllInfos',
    method: 'get',
    params
  })
}

export function addCourse(data) {
  return request({
    url: '/course/addCourse',
    method: 'post',
    data
  })
}

export function delICourse(params) {
  return request({
    url: '/course/delICourse',
    method: 'get',
    params
  })
}

export function editCourse(data) {
  return request({
    url: '/course/editCourse',
    method: 'post',
    data
  })
}
  export function students(params) {
    return request({
      url: '/course/students',
      method: 'get',
      params
    })
}

export function deletestudent(params) {
  return request({
    url: '/course/deletestudent',
    method: 'get',
    params
  })
}


